package com.wuliu.system.domain.dto.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author realue
 * @version 1.0
 * @date 2023-11-10 10:16
 */
@Data
@ApiModel(description = "收件请求实体类")
public class RecOrderDto {
    @Valid
    private List<RecOrderItem> recOrderItems;
    @ApiModelProperty(value = "操作员位置经度")
    private String lng;
    @ApiModelProperty(value = "操作员位置纬度")
    private String lat;
    @Data
    public static class RecOrderItem {
        @NotBlank(message = "运单号不能为空")
        @ApiModelProperty(value = "运单号")
        private String orderNo;
        @ApiModelProperty(value = "电子称重量")
        private BigDecimal actWeight;
        @ApiModelProperty(value = "图片地址")
        private String photoUrl;
    }
}
